From f4bf67e5fd93255a4361e1423e6d6845951333a9 Mon Sep 17 00:00:00 2001 From: Alastair Tse Date: Tue, 3 Oct 2006 11:24:48 +0100 Subject: [PATCH] [XM] Fix rmlabel filename assignment The patch fixes a bug in the rmlabel tool. Signed-off-by: Stefan Berger --- tools/python/xen/xm/rmlabel.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/python/xen/xm/rmlabel.py b/tools/python/xen/xm/rmlabel.py index 9cfdeae350..997a4f04f3 100644 --- a/tools/python/xen/xm/rmlabel.py +++ b/tools/python/xen/xm/rmlabel.py @@ -57,7 +57,8 @@ def rm_domain_label(configfile): fd = None file = None if configfile[0] == '/': - fd = open(configfile, "rb") + file = configfile + fd = open(file, "rb") else: for prefix in [".", "/etc/xen"]: file = prefix + "/" + configfile -- 2.30.2